import request from '@/utils/request'

// 查询法制讲堂列表
export function listLegalClassroom(query) {
  return request({
    url: '/petition/legalClassroom/list',
    method: 'get',
    params: query
  })
}

// 查询法制讲堂详细
export function getLegalClassroom(id) {
  return request({
    url: '/petition/legalClassroom/' + id,
    method: 'get'
  })
}

// 新增法制讲堂
export function addLegalClassroom(data) {
  return request({
    url: '/petition/legalClassroom',
    method: 'post',
    data: data
  })
}

// 修改法制讲堂
export function updateLegalClassroom(data) {
  return request({
    url: '/petition/legalClassroom',
    method: 'put',
    data: data
  })
}

// 删除法制讲堂
export function delLegalClassroom(id) {
  return request({
    url: '/petition/legalClassroom/' + id,
    method: 'delete'
  })
}
